﻿using System;
using System.Collections.Generic;

namespace SR.SimpleTrack.Models
{
    public class WorkItem
    {
        public int Id { get; set; }
        public ItemType ItemType { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public ICollection<WorkItemNote> Notes { get; set; }
        public ICollection<WorkLog> WorkLog { get; set; }
        public User CreatedBy { get; set; }
        public User AssignedTo { get; set; }
        public Project Project { get; set; }
        public Release Release { get; set; }
        public Status Status { get; set; }
        public int EstimatedDuration { get; set; }
        public DurationType EstimatedDurationType { get; set; }
        public int ActualDuration { get; set; }
        public DurationType ActualDurationType { get; set; }
        public Priority Priority { get; set; }
        public DateTime CreatedDate { get; set; }
        public DateTime StartedDate { get; set; }
        public DateTime CompletedDate { get; set; }
        public bool Archived { get; set; }
        public WorkItem ParentWorkItem { get; set; }
        
        //audit logging
        public DateTime LastUpdate { get; set; }
        public User UpdatedBy { get; set; }
    }
}
